package com.zs.zcerp.entrance.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zs.zcerp.entrance.entity.Attendance;
import com.zs.zcerp.entrance.mapper.AttendanceMapper;
import com.zs.zcerp.entrance.service.IAttendanceService;
import org.springframework.stereotype.Service;

import java.util.Date;

@DS("oracle2")
@Service
public class AttendanceServiceImpl extends ServiceImpl<AttendanceMapper, Attendance> implements IAttendanceService {

    @Override
    public Attendance attendanceByEmpNo(Integer orgId, String empNo, Date date) {
        Attendance attendance = baseMapper.attendanceByEmpNo(orgId, empNo, date);
        return attendance;
    }

    @Override
    public void testTest() {
        baseMapper.testCall();
    }
}
